
button = xui.button:new(
    {
        w = 0.07,
        h = 0.04,
        x = 0.9,
        y = 0.2,
    }
)
button2 = xui.button:new(
    {
        w = 0.07,
        h = 0.04,
        x = 0.9,
        y = 0.28,
        value = '恢复满血',
    }
)

button.value = '生成一个敌人'

button:event('click', on_button_1_click)
button2:event('click', on_button_2_click)


panel = xui.panel:new(
    {
        x = 0.5,
        y = 0.3,
        w = 0.2,
        h = 0.2,
        value = 0.3,
        --滚动条
        --hasScrollBar = true,
        --关闭按钮
        --hasCloseButton = true,
    }

)

--扩展一页[默认]
panel.frame_vScroll.max = 1.0

button3 = xui.button:new(
    {
        parent = panel,
        w = 0.3,
        h = 0.1,
        x = 0.2,
        y = 0.08,
        value = '000',
    }
)

button3:event( 'enter',
    function (btn)
        print( '000 鼠标移入' )
    end
)

button3:event( 'leave',
    function (btn)
        print( '000 鼠标离开' )
    end
)

button3:event( 'click',
    function (btn)
        print( '000被点击' )
    end
)

icon1 = xui.icon:new(
    {
        parent = panel,
        w = 0.3,
        h = 0.3,
        x = 0.2,
        y = 0.8,
        image = "ReplaceableTextures\\CommandButtons\\BTNManual3.blp",
        --value = '111',
    }
)


cb = xui.checkbox:new(
    {
        parent = panel,
        w = 0.5,
        h = 0.1,
        x = 0.2,
        y = 1.5,
        value = 'checkbox11111',
    }
)
rb = xui.radiobox:new(
    {
        parent = panel,
        w = 0.3,
        h = 0.1,
        x = 0.2,
        y = 1.2,
        value = '222',
    }
)
